package com.LeeCode;

/**
 * 汉明距离
 */
public class Code461 {
    public static void main(String[] args) {

    }

    public int hammingDistance(int x, int y) {
        int res = x ^ y;
        return Integer.bitCount(res);
    }
}
